Optimal. Leaf size=31 \[ \frac{1}{2} x (a+2 b)+\frac{a \sinh (c+d x) \cosh (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0314004, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {4045, 8} \[ \frac{1}{2} x (a+2 b)+\frac{a \sinh (c+d x) \cosh (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4045
Rule 8
Rubi steps
\begin{align*} \int \cosh ^2(c+d x) \left (a+b \text{sech}^2(c+d x)\right ) \, dx &=\frac{a \cosh (c+d x) \sinh (c+d x)}{2 d}+\frac{1}{2} (a+2 b) \int 1 \, dx\\ &=\frac{1}{2} (a+2 b) x+\frac{a \cosh (c+d x) \sinh (c+d x)}{2 d}\\ \end{align*}
Mathematica [A] time = 0.0306696, size = 33, normalized size = 1.06 \[ \frac{a (c+d x)}{2 d}+\frac{a \sinh (2 (c+d x))}{4 d}+b x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.035, size = 37, normalized size = 1.2 \begin{align*}{\frac{1}{d} \left ( a \left ({\frac{\cosh \left ( dx+c \right ) \sinh \left ( dx+c \right ) }{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) + \left ( dx+c \right ) b \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15954, size = 51, normalized size = 1.65 \begin{align*} \frac{1}{8} \, a{\left (4 \, x + \frac{e^{\left (2 \, d x + 2 \, c\right )}}{d} - \frac{e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + b x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.97165, size = 74, normalized size = 2.39 \begin{align*} \frac{{\left (a + 2 \, b\right )} d x + a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 47.1013, size = 60, normalized size = 1.94 \begin{align*} a \left (\begin{cases} - \frac{x \sinh ^{2}{\left (c + d x \right )}}{2} + \frac{x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac{\sinh{\left (c + d x \right )} \cosh{\left (c + d x \right )}}{2 d} & \text{for}\: d \neq 0 \\x \cosh ^{2}{\left (c \right )} & \text{otherwise} \end{cases}\right ) + b \left (\begin{cases} x & \text{for}\: \left |{x}\right | < 1 \\{G_{2, 2}^{1, 1}\left (\begin{matrix} 1 & 2 \\1 & 0 \end{matrix} \middle |{x} \right )} +{G_{2, 2}^{0, 2}\left (\begin{matrix} 2, 1 & \\ & 1, 0 \end{matrix} \middle |{x} \right )} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.21136, size = 89, normalized size = 2.87 \begin{align*} \frac{4 \,{\left (d x + c\right )}{\left (a + 2 \, b\right )} + a e^{\left (2 \, d x + 2 \, c\right )} -{\left (2 \, a e^{\left (2 \, d x + 2 \, c\right )} + 4 \, b e^{\left (2 \, d x + 2 \, c\right )} + a\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]